#ifndef DOCVIEW_H
#define DOCVIEW_H

#include <QWidget>
#include <QPaintEvent>
#include <QPainter>

#include "docwidget.h"
#include "pdfkit.h"


class DocView : public QWidget
{
    Q_OBJECT
public:
    DocView(PDFKit *pdf, QWidget *parent=0);
    ~DocView(){}


    int page;
    int y;
    PDFKit *pdf;
    float multiple;

    void paintEvent(QPaintEvent *);
    void gotoPage(int page);
    int getCurrentPage(){return page;}
    void changeImageSize(int flag);
    bool GetVPos(int nScrollPos, int &nPageNum, int &nPageVStartPos);
public slots:
    void valueChange(int value);
};

#endif // DOCVIEW_H
